﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageAdmin.aspx.cs" Inherits="Admin1_Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="m_box">
        <div class="m_head">
            管理员信息</div>
        <div class="m_middle">
            <div class="m_m_c">
                <span>查询条件</span></div>
            <div class="m_m_c">
                单位名称</div>
            <div class="m_m_c">
                <asp:TextBox ID="TextBox1" runat="server" Width="92px" Height="16px"></asp:TextBox>
            </div>
            <div class="m_m_c">
                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/image/search.gif" OnClick="ImageButton1_Click" />
            </div>
            <asp:Button ID="Button2" runat="server" Text="新增" onclick="Button2_Click" />
            查询时可输入简称进行，如：林业、公安</div>
        <div >
            <div class="m_content" >
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Height="16px" style="float:left"
                    Width="600px" AllowPaging="True" CellPadding="4" ForeColor="Black" GridLines="Horizontal"
                    OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDeleting="GridView1_RowDeleting"
                    BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                    OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing"
                    OnRowUpdating="GridView1_RowUpdating" DataKeyNames="id" OnSelectedIndexChanged="GridView1_SelectedIndexChanged1">
                    <Columns>
                        <asp:BoundField DataField="danweimingchen" HeaderText="单位名称" SortExpression="danweimingchen">
                            <ItemStyle Width="400px" />
                        </asp:BoundField>
                        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowSelectButton="True">
                            <ItemStyle Width="100px" />
                        </asp:CommandField>
                    </Columns>
                    <RowStyle HorizontalAlign="Center" />
                    <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                    <HeaderStyle BackColor="#3a9cff" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            
             <div> 部门名称：
                 <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                 <asp:Button ID="Button1"
                     runat="server" Text="增加部门" onclick="Button1_Click" /> &nbsp; 需先选择一个单位</div>
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" style="float:left"
                    DataKeyNames="id" onrowcancelingedit="GridView2_RowCancelingEdit" 
                    onrowdeleting="GridView2_RowDeleting" onrowediting="GridView2_RowEditing" 
                    onrowupdating="GridView2_RowUpdating">
                    <Columns>
                        <asp:BoundField DataField="bumenmingcheng" HeaderText="部门名称" SortExpression="bumenmingcheng" />
                        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                    </Columns>
                </asp:GridView>
            </div> 
                
             
        </div><asp:HiddenField ID="HiddenField1" runat="server" />
        <div class="t_button">
            <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/image/allselect.gif"
                OnClick="ImageButton3_Click" />
            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/image/cselect.gif"
                OnClick="ImageButton2_Click" />
            <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/image/adelete.gif"
                OnClick="ImageButton4_Click" />
        </div>
    </div>
    </form>
</body>
</html>
